package cn.wolfcode.car.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Leave {

    public static final Integer AUDITSTATUS_AUDITING = 1;//审核中
    public static final Integer AUDITSTATUS_APPROVED = 2;//审核通过

    /** */
    private Long id;

    /** */
    private String name;

    /** */
    private String reason;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date starttime;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endtime;

    /** */
    private Integer auditid;

    /** */
    private String status;

    /** */
    private String info;

    private Long instanceId;


}